@import './base.scss';

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes slideUpIn {
  0% {
    opacity: 0;
    transform-origin: 0 0;
    transform: translateY(-6px);
  }
  100% {
    opacity: 1;
    transform-origin: 0 0;
    transform: translateY(0);
  }
}
@keyframes slideUpOut {
  0% {
    opacity: 1;
    transform-origin: 0% 0%;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform-origin: 0% 0%;
    transform: translateY(-6px);
  }
}
@keyframes messageFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -100%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes messageFadeOut {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -100%);
  }
}

@keyframes alterFadeIn {
  from {
    opacity: 0;
    height: 0;
    transform-origin: 0 0;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    height: 100%;
    transform-origin: 0 0;
    transform: scaleY(1);
  }
}

@keyframes alterFadeOut {
  from {
    opacity: 1;
    height: 100%;
    transform-origin: 0 0;
    transform: scaleY(1);
  }
  to {
    opacity: 0;
    height: 0;
    transform-origin: 0 0;
    transform: scaleY(0);
  }
}

@keyframes drawerMoveRightIn {
  from {
    opacity: 0;
    transform-origin: 0 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform-origin: 0 0;
    transform: translateX(0);
  }
}

@keyframes drawerMoveRightOut {
  from {
    opacity: 1;
    transform-origin: 0 0;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform-origin: 0 0;
    transform: translateX(100%);
  }
}

@keyframes drawerMoveLeftIn {
  from {
    opacity: 0;
    transform-origin: 0 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform-origin: 0 0;
    transform: translateX(0);
  }
}

@keyframes drawerMoveLeftOut {
  from {
    opacity: 1;
    transform-origin: 0 0;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform-origin: 0 0;
    transform: translateX(-100%);
  }
}

@keyframes drawerMoveTopIn {
  from {
    opacity: 0;
    transform-origin: 0 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform-origin: 0 0;
    transform: translateY(0);
  }
}

@keyframes drawerMoveTopOut {
  from {
    opacity: 1;
    transform-origin: 0 0;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform-origin: 0 0;
    transform: translateY(-100%);
  }
}

@keyframes drawerMoveBottomIn {
  from {
    opacity: 0;
    transform-origin: 0 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform-origin: 0 0;
    transform: translateY(0);
  }
}

@keyframes drawerMoveBottomOut {
  from {
    opacity: 1;
    transform-origin: 0 0;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform-origin: 0 0;
    transform: translateY(100%);
  }
}

@include animation-base(fade, fade) {
  animation-timing-function: ease-in-out;
}

@include animation-base(slideUp, slideUp) {
  animation-timing-function: ease-in-out;
}

@include animation-base(messageFade, messageFade) {
  animation-timing-function: ease-in-out;
}

@include animation-base(alterFade, alterFade) {
  animation-timing-function: ease-in-out;
}

@include animation-base(drawerMoveRight, drawerMoveRight) {
  animation-timing-function: ease-in-out;
}

@include animation-base(drawerMoveLeft, drawerMoveLeft) {
  animation-timing-function: ease-in-out;
}

@include animation-base(drawerMoveTop, drawerMoveTop) {
  animation-timing-function: ease-in-out;
}

@include animation-base(drawerMoveBottom, drawerMoveBottom) {
  animation-timing-function: ease-in-out;
}
